<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>分类信息</title>
    <link rel="stylesheet" href="/web/layui/css/layui.css">
    <link rel="stylesheet" href="/web/static/css/style.css">
    <link rel="stylesheet" href="/web/static/css/blog.css">
    <link rel="icon" href="/web/static/image/code.png">
    <link rel="stylesheet" href="/web/dist/css/wangEditor.css">
    <link rel="stylesheet" href="/web/dist/styles/github.css">

</head>
<body class="body">

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">博客列表</li>
        <li>添加博客</li>
        <li>预览最新</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div>
                <table id="blog" lay-filter="blog"></table>
            </div>
        </div>
        <div class="layui-tab-item">
            <div class="blog_params">
                <form class="layui-form" action="" onclick="return false">

                    <div class="layui-form-item">
                        <label class="layui-form-label">分类:</label>
                        <div class="layui-input-block" class="cate" >
                            @if(!empty($cateinfo))
                                @foreach($cateinfo as $k=>$value)
                                    @if($k == 0)
                                        <input type="radio" name="cate_id" lay-filter="cate_id" value="{{ $value['id'] }}" title="{{ $value['cate_name'] }}" checked>
                                    @else
                                        <input type="radio" name="cate_id" lay-filter="cate_id" value="{{ $value['id'] }}" title="{{ $value['cate_name'] }}">
                                    @endif
                                @endforeach
                            @endif
                        </div>
                    </div>
                    <div class="layui-form-item key_box">
                        <label class="layui-form-label">标签:</label>
                        <div class="layui-input-block" class="keyword" >
                            @if(!empty($keyword))
                                @foreach($keyword as $value)
                                    <input type="checkbox" name="key_id" value={{ $value['id'] }} title={{ $value['keyword'] }}>
                                @endforeach
                            @endif

                        </div>
                    </div>
                    <div class="layui-form-item note" style="display: none">
                        <label class="layui-form-label">关键词:</label>
                        <div class="layui-input-block">
                            <input type="text" name="note"  placeholder="请输入关键词"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题:</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" required lay-verify="required" placeholder="请输入文章标题"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">简述:</label>
                        <div class="layui-input-block">
                            <textarea name="des" placeholder="请输入内容"  class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">正文:</label>
                            <div class="layui-input-block">

                            <div id="editor" style="height:300px;max-height:400px;">

                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item btn-search" >
                        <div class="layui-input-block">
                            <button type="reset" class="layui-btn layui-btn-primary btn-refresh"><i class="layui-icon">&#x1002;</i></button>
                            <button class="layui-btn add" lay-submit lay-filter="add">提交</button>
                        </div>
                    </div>
                </form>

            </div>

        </div>
        <div class="layui-tab-item pre_blog" style="background: #fcfcfa;">
            <div class="content">
                <div class="pre_header">
                    <h2 class="title"><b></b></h2>
                    <time class="time"></time>
                </div>
                <div class="pre_content">

                </div>
            </div>

        </div>
    </div>
</div>

</body>
<!-- 关键词表格操作按钮集 -->
<script type="text/html" id="blog_tool">
    <a class="layui-btn layui-btn-small layui-btn-primary tool-btn" lay-event="pre">预览</a>
    <a class="layui-btn layui-btn-small layui-btn-normal tool-btn" lay-event="show">上线</a>
    <a class="layui-btn layui-btn-small layui-btn-default tool-btn" lay-event="update">修改</a>
</script>



<input type="hidden" name="_token" id="_token" value="<?php echo csrf_token(); ?>">
<script type="text/javascript" src="/web/layui/layui.js"></script>
<script type="text/javascript" src="/web/index.js"></script>
<script type="text/javascript" src="/web/static/js/blog/blog.js"></script>
<script type="text/javascript" src="/web/static/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="/web/dist/js/wangEditor.js"></script>
<script type="text/javascript" src="/web/dist/js/highlight.pack.js"></script>
<script type="text/javascript">

</script>

</html>